﻿#conversation {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
#conversation.busy {
    cursor: wait;
}
#conversation h3 {
    margin-left: 10px;
}
#conversation ul.messages {
    flex: 1;
    margin-right: 25px;
}
#conversation ul.messages > li {
    display: block;
    word-wrap: break-word;
}
#conversation ul.messages > li:first-child {
    text-align: center;
    height: 21px;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}
#conversation ul.messages > li:first-child > ul {
    list-style: none;
    text-align: center;
    height: 100%;
}
#conversation ul.messages > li:first-child a span {
    vertical-align: middle;
}
#conversation ul.messages > li:first-child:not(.show) a {
    color: #6d6d6d !important;
    text-decoration: none;
}
#conversation ul.messages > li:first-child:not(.show) {
    pointer-events: none;
    -webkit-transform-origin: top;
    transform-origin: top;
    height: 0;
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    transition: all .5s .5s;
}
#conversation ul.messages > li.sending {
    cursor: progress;
}
#conversation ul.messages > li > div:first-child > span {
    float: left;
}
#conversation ul.messages > li > div:first-child > span + span {
    float: right;
}
#conversation ul.messages > li > div:last-child {
    display: flex;
}
#conversation ul.messages > li > div:last-child > pre {
    position: relative;
    min-height: 41px;
    flex: 1;
}
#conversation ul.messages > li > div:last-child > img {
    margin-left: 10px;
    max-width: 150px;
    align-self: flex-start;
    margin: 0 0 10px;

    cursor: pointer;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}
#conversation form[name=convForm] {
    display: flex;
    margin: 5px;
    max-height: 100%;
    min-height: 26px;
}
#conversation form[name=convForm] > button {
    height: 26px;
    align-self: flex-end;
}
#conversation form[name=convForm] > button[type=button] > img {
    margin-bottom: 1px;
}
#conversation form[name=convForm] > button[type=button] > span {
    margin-left: 5px;
}
#conversation form[name=convForm] > div.textarea {
    flex: 1;
    margin: 0 10px;
    padding: 2px 6px;

    /* Copied from bootstrap.css */
    font-size: 14px;
    line-height: 20px;
    color: #555555;
    overflow-y: auto;
    border-radius: 4px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    transition: border linear 0.2s, box-shadow linear 0.2s;
}
#conversation form[name=convForm] > div.textarea:focus {
    border-color: rgba(82, 168, 236, 0.8);
    outline: 0;

    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
}
.barlittle {
    background-image: linear-gradient(45deg, #08C 25%, #CCC);
    border-left: 1px solid #EEE;
    border-top: 1px solid #EEE;
    border-right: 1px solid #BBB;
    border-bottom: 1px solid #BBB;
    width: 12px;
    height: 12px;
    opacity: 0.1;
    display: inline-block;
    -webkit-transform: scale(0.7);
    transform: scale(0.7);
    -webkit-animation: barlittle_move 1s infinite linear;
    animation: barlittle_move 1s infinite linear;
}

.barlittle:nth-child(1) {
    -webkit-animation-delay: .4s;
    animation-delay: .4s;
}

.barlittle:nth-child(2) {
    -webkit-animation-delay: .3s;
    animation-delay: .3s;
}

.barlittle:nth-child(3) {
    -webkit-animation-delay: .2s;
    animation-delay: .2s;
}

.barlittle:nth-child(4) {
    -webkit-animation-delay: .3s;
    animation-delay: .3s;
}

.barlittle:nth-child(5){
    -webkit-animation-delay: .4s;
    animation-delay: .4s;
}

@-webkit-keyframes barlittle_move {
    from {
        -webkit-transform: scale(1.2);
        opacity: 1;
    }

    to {
        -webkit-transform: scale(0.7);
        opacity: 0.1;
    }
}

@keyframes barlittle_move {
    from {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
        opacity: 1;
    }

    to {
        -webkit-transform: scale(0.7);
        transform: scale(0.7);
        opacity: 0.1;
    }
}